for i in range(1,10):
    for j in range(1,i+1):
        print('%d*%d=%d'%(j,i,i*j),end=' ')
    print()


for i in range(1,10):
    print()
    for j in range(1,i+1):
        if j == 2 and i < 5:
            print('%d*%d=%d'%(j,i,i*j),end='  ')
        else:
            print('%d*%d=%d'%(j,i,i*j),end=' ')
